<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        let a=20
        let str=`今年${a}岁了`;
        console.log(str);

        let str1=`今年小明${a+1}岁了`;
        console.log(str1);

        let salary=9000;
        let text=`嬛嬛是${salary>10000?"土豪":"穷人"}`;
        console.log(text);
    </script>
</body>
</html>